import 'package:get/get.dart';
import 'package:image_picker/image_picker.dart';

import '../public/take_picture_screen.dart';

class EditProfileController extends GetxController {
  final ImagePicker _imagePicker = ImagePicker();
  XFile? image;
  String? username;
  String? avatar;
  selectImage() async {
    XFile? image = await _imagePicker.pickImage(
      source: ImageSource.gallery,
    );
    if (image != null) this.image = image;
  }

  takePhoto() async {
    var imagePathList = <String>[];
    Get.to(TakePictureScreen(imagePathList: imagePathList));
  }

}